package sdk.pay.constant;

public final class PayConstant {
    /**
     * * 1 When the SDK access token, use the version number ext_sdkversion parameters are sent to use API gateway.
     * 2 Order to increase the SDK version field, convenient order version number query
     * 3 Version number rules for android and IOS before two simultaneous use of version, identify common function upgrade, such as 1.2 1.3 identifies common perfect function
     * 4 Third version, by its own small version, the competent development to grasp as 1.2.100 said the 1.2 one hundredth upgrade
     * 5 The version number of the fourth marking system, android with 1, apple in 2, such as 1.2.100.1 said android version 1.2 100th upgrade 1.2.100.2 said apple's 100th upgrade version 1.2
     * 1 SDK在获取token时,将版本号用ext_sdkversion参数发送至在用API网关.
     * 2 订单上增加SDK版本字段,方便订单版本号查询
     * 3 版本号规则前两位为安卓和IOS共同同步使用的版本,标识共同功能升级,比如1.2 1.3 标识共同完善的功能
     * 4 版本号第三位,由各自的小版本,由开发主管自行掌握  如1.2.100 表示1.2版本的第一百个小升级
     * 5 版本号的第4位标识系统,安卓用1,苹果用2,如1.2.100.1表示安卓的1.2版本的第100个升级 1.2.100.2 表示苹果的1.2版本的第100个升级
     */
    public static final String VERSION_CODE = "2.4.0.1";
    public static final String DATABASE_NAME = "sdk_db";
    public static final String DEVICE_TYPE_NAME = "Android";
    /*-okhttp time out-*/
    public final static long TIME_OUT = 30L;
    public final static long PAY_TIME_OUT = 15L;

    /*-internet interface-*/
    protected static final String TYPE_PARAM = "/sdk/AppAes_1stNew";
    protected static final String PAY_PARAM = "/sdk/AppAes_2ndNew";
    protected static final String ORDER_PARAM = "/sdk/tokenquery";
    protected static final String TOKEN_PARAM = "/sdk/tokenNew";
    protected static final String STEP_PAY_PARAM = "/sdk/StepPayNew";
    protected static final String GET_SERVICES_PARAM = "/sdk/serverlistNew";
    protected static final String DO_UPLOAD_PARAM = "/sdk/UploadTheLog";

    /*-default pay url-*/
    public static String DEFAULT_PAY_URL_JFT = "http://876hfd.jtpay.com";
    public static String DEFAULT_PAY_URL_YHB = "http://126g33.payhee.com";
    public static String DEFAULT_PAY_URL_YZF = "http://8756d562.payeay.com";
    public static String DEFAULT_PAY_URL_WSF = "http://21d.paywap.cn";

    /*-main api-*/
    public static final String GET_SERVICES_JFT = "http://123ttd1.jtpay.com" + GET_SERVICES_PARAM;
    public static final String GET_SERVICES_YHB = "http://36g43.payhee.com" + GET_SERVICES_PARAM;
    public static final String GET_SERVICES_YZF = "http://333dddx.payeay.com" + GET_SERVICES_PARAM;
    public static final String GET_SERVICES_WSF = "http://8888j.paywap.cn" + GET_SERVICES_PARAM;
//    public static final String UPLOAD_LOG_API="http://xwhzpp666.tpddns.cn:5982/sdk/UploadTheLog";

    /*-sharepreference key-*/
    public static final String SHAREPERFERENCE_NAME = "paySdk";
    public static final String SHAREPERFERENCE_MSG_KEY = "PaySdkMsg";
    public static final String SHAREPERFERENCE_NONCE_KEY = "PaySdkNonce";
    public static final String SHAREPERFERENCE_SERVCERS_SUM_KEY = "PaySdkServersSum";
    public static final String SHAREPERFERENCE_SERVCERS_CURRENT_KEY = "PaySdkServersCurrent";
    public static final String SHAREPERFERENCE_TIMR_HISTORY = "HistoryNumber";


    public static final String SERVER_ADDRESS = "http://112.125.122.201:8001/Android/";
    public static final String CONFIG_FILE_NAME = "updateList.xml";
    public static final String PATCH_FILE_NAME = "patch.jar";
    public static final String PATCH_FILE_RESERVE_NAME = "patch";
    public static final String CONFIG_KEY = "config_key";
    public static final String CONFIG_SDK_VERSION = "sdk_version";
    public static final String PATCH_VERSION_KEY = "version_key";
    public static final String VERSION_ADDRESS = SERVER_ADDRESS + "Version.txt";

}